home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / AVComponents.a < prev    next >
Text File  |  1996-05-01  |  19KB  |  683 lines

  1. ;
  2. ;    File:        AVComponents.a
  3. ;
  4. ;    Contains:    Standard includes for standard AV panels
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__AVCOMPONENTS__') = 'UNDEFINED' THEN
  19. __AVCOMPONENTS__ SET 1
  20.  
  21.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  22.     include 'Dialogs.a'
  23.     ENDIF
  24.     IF &TYPE('__VIDEO__') = 'UNDEFINED' THEN
  25.     include 'Video.a'
  26.     ENDIF
  27.     IF &TYPE('__DISPLAYS__') = 'UNDEFINED' THEN
  28.     include 'Displays.a'
  29.     ENDIF
  30.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  31.     include 'Components.a'
  32.     ENDIF
  33.     IF &TYPE('FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE') = 'UNDEFINED' THEN
  34.     FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE: SET 1
  35.     ENDIF
  36.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  37. ;
  38. ;    The subtypes listed here are for example only.  The display manager will find _all_ panels
  39. ;      with the appropriate types.  These panels return class information that is used to devide them
  40. ;      up into groups to be displayed in the AV Windows (class means "geometry" or "color" or other groupings
  41. ;      like that.
  42. ;
  43.  
  44. kAVPanelType                    EQU        'avpc'                ; Panel subtypes            
  45. kBrightnessPanelSubType            EQU        'brit'
  46. kContrastPanelSubType            EQU        'cont'
  47. kBitDepthPanelSubType            EQU        'bitd'
  48. kAVEngineType                    EQU        'avec'                ; Engine subtypes                
  49. kBrightnessEngineSubType        EQU        'brit'
  50. kContrastEngineSubType            EQU        'cont'                ;        kBitDepthEngineSubType        = 'bitd',            // Not used                    
  51. kAVPortType                        EQU        'avdp'                ;subtypes are defined in each port's public .h file
  52. ;
  53. ; PortComponent subtypes are up to the port and display manager does not use the subtype
  54. ;    to find port components.  Instead, display manager uses an internal cache to search for portcompoennts.
  55. ;    It turns out to be useful to have a unique subtype so that engines can see if they should apply themselves to
  56. ;    a particular port component.
  57. ;  
  58. ;   PortKinds are the "class" of port.  When a port is registered with display manager (creating a display ID), the
  59. ;    caller of DMNewDisplayIDByPortComponent passes a portKind.  Ports of this type are returned by
  60. ;    DMNewDevicePortList.
  61. ;  
  62. ;   PortKinds are NOT subtypes of components
  63. ;   PortKinds ARE used to register and find port components with Display Manager.  Here are the basic port kinds:
  64. ;  
  65. ;   Video displays are distinct from video out because there are some video out ports that are not actaully displays.
  66. ;    if EZAV is looking to configure displays, it needs to look for kAVVideoDisplayPortKind not kAVVideoOutPortKind.
  67. ;
  68.  
  69. kAVVideoDisplayPortKind            EQU        'pkdo'                ; Video Display (CRT or panel display)                
  70. kAVVideoOutPortKind                EQU        'pkvo'                ; Video out port (camera output).                      
  71. kAVVideoInPortKind                EQU        'pkvi'                ; Video in port (camera input)                        
  72. kAVSoundOutPortKind                EQU        'pkso'                ; Sound out port (speaker or speaker jack)            
  73. kAVSoundInPortKind                EQU        'pksi'                ; Sound in port (microphone or microphone jack)    
  74. kAVDeviceType                    EQU        'avdc'                ; Device Component subtypes are up to the manufacturor since each device may contain multiple function types (eg telecaster) 
  75. kAVDisplayDeviceKind            EQU        'dkvo'                ; Display device
  76.                                                             ; Device Component subtypes are up to the manufacturor since each device may contain multiple function types (eg telecaster)
  77. kAVCategoryType                    EQU        'avcc'
  78. kAVSoundInSubType                EQU        'avao'
  79. kAVSoundOutSubType                EQU        'avai'
  80. kAVVideoInSubType                EQU        'vdin'
  81. kAVVideoOutSubType                EQU        'vdou'
  82. kAVInvalidType                    EQU        'badt'                ; Some calls return a component type, in case of errors, these types are set to kAVInvalidComponentType 
  83. ;
  84. ; Constants for Panel Classes (used to build buttons in AVSetup) 
  85. ; but is generic to all panels 
  86. ;
  87.  
  88. kAVPanelClassDisplayDefault        EQU        'cdsp'
  89. kAVPanelClassColor                EQU        'cclr'
  90. kAVPanelClassGeometry            EQU        'cgeo'
  91. kAVPanelClassSound                EQU        'csnd'
  92. kAVPanelClassPreferences        EQU        'cprf'
  93. ;  =============================                    
  94. ;  Component interface revision levels and history    
  95. ;  =============================                    
  96.  
  97. kAVPanelComponentInterfaceRevOne EQU    1
  98. kAVEngineComponentInterfaceRevOne EQU    1
  99. kAVPortComponentInterfaceRevOne    EQU        1
  100. kAVDeviceComponentInterfaceRevOne EQU    1
  101.  
  102. kBaseAVComponentSelector        EQU        256                    ; First apple-defined selector for engine components 
  103. ;  =============================                
  104. ;  Panel Standard component selectors            
  105. ;  =============================                
  106.  
  107. kAVPanelFakeRegisterSelect        EQU        -5                    ; -5    
  108. kAVPanelSetCustomDataSelect        EQU        0
  109. kAVPanelGetDitlSelect            EQU        1
  110. kAVPanelGetTitleSelect            EQU        2
  111. kAVPanelInstallSelect            EQU        3
  112. kAVPanelEventSelect                EQU        4
  113. kAVPanelItemSelect                EQU        5
  114. kAVPanelRemoveSelect            EQU        6
  115. kAVPanelValidateInputSelect        EQU        7
  116. kAVPanelGetSettingsIdentifiersSelect EQU 8
  117. kAVPanelGetSettingsSelect        EQU        9
  118. kAVPanelSetSettingsSelect        EQU        10
  119. kAVPanelSelectorGetFidelity        EQU        256
  120. kAVPanelSelectorTargetDevice    EQU        257
  121. kAVPanelSelectorGetPanelClass    EQU        258
  122. ;  =============================                
  123. ;  Engine Standard component selectors            
  124. ;  =============================                
  125.  
  126. kAVEngineSelectorGetEngineFidelity EQU    256
  127. kAVEngineSelectorTargetDevice    EQU        257
  128. ;  =============================                    
  129. ;  Video Port Specific calls                        
  130. ;  =============================                    
  131.  
  132. kAVPortCheckTimingMode            EQU        0
  133. ;  =============================                    
  134. ;  AV Port Specific calls                            
  135. ;  =============================                    
  136.  
  137. kAVPortGetAVDeviceFidelity        EQU        256                    ; Port Standard Component selectors 
  138. kAVPortGetWiggle                EQU        257
  139. kAVPortSetWiggle                EQU        258
  140. kAVPortGetName                    EQU        259
  141. kAVPortGetGraphicInfo            EQU        260
  142. kAVPortSetActive                EQU        261
  143. kAVPortGetActive                EQU        262
  144. kAVPortUnsed1                    EQU        263                    ; Selector removed as part of API change.  We don't want to mess up the following selectors, so we put in this spacer (ie kPadSelector). 
  145. kAVPortGetAVID                    EQU        264
  146. kAVPortSetAVID                    EQU        265
  147. kAVPortSetDeviceAVID            EQU        266                    ; For registrar to set device (instead of hitting global directly) -- should only be called once 
  148. kAVPortGetDeviceAVID            EQU        267                    ; Called by display mgr for generic ports 
  149. kAVPortGetPowerState            EQU        268
  150. kAVPortSetPowerState            EQU        269
  151. ;  =============================                    
  152. ;  Device Component Standard Component selectors    
  153. ;  =============================                    
  154.  
  155. kAVDeviceGetName                EQU        256
  156. kAVDeviceGetGraphicInfo            EQU        257
  157. kAVDeviceGetPowerState            EQU        258
  158. kAVDeviceSetPowerState            EQU        259
  159. kAVDeviceGetAVID                EQU        260                    ;        Not yet implemented
  160. kAVDeviceSetAVID                EQU        261                    ; For registrar to set AVID (should be called only once)
  161. ;  =============================                
  162. ;  Engine Standard component selectors            
  163. ;  =============================                
  164. ;
  165. ; pascal ComponentResult AVEngineComponentGetFidelity(ComponentInstance engineComponent, DisplayIDType displayID, DMFidelityType *engineFidelity)
  166. ;
  167.     IF ¨ GENERATINGCFM THEN
  168.         Macro
  169.         _AVEngineComponentGetFidelity
  170.             move.l              #$00080100,-(sp)
  171.             moveq               #0,D0
  172.             dc.w                $A82A
  173.         EndM
  174.     ELSE
  175.         IMPORT_CFM_FUNCTION AVEngineComponentGetFidelity
  176.     ENDIF
  177.  
  178. ;
  179. ; pascal ComponentResult AVEngineComponentTargetDevice(ComponentInstance engineComponent, DisplayIDType displayID)
  180. ;
  181.     IF ¨ GENERATINGCFM THEN
  182.         Macro
  183.         _AVEngineComponentTargetDevice
  184.             move.l              #$00040101,-(sp)
  185.             moveq               #0,D0
  186.             dc.w                $A82A
  187.         EndM
  188.     ELSE
  189.         IMPORT_CFM_FUNCTION AVEngineComponentTargetDevice
  190.     ENDIF
  191.  
  192. ;  =============================                
  193. ;  Panel Standard Component calls                
  194. ;  =============================                
  195. ;
  196. ; pascal ComponentResult AVPanelFakeRegister(ComponentInstance ci)
  197. ;
  198.     IF ¨ GENERATINGCFM THEN
  199.         Macro
  200.         _AVPanelFakeRegister
  201.             move.l              #$0000FFFB,-(sp)
  202.             moveq               #0,D0
  203.             dc.w                $A82A
  204.         EndM
  205.     ELSE
  206.         IMPORT_CFM_FUNCTION AVPanelFakeRegister
  207.     ENDIF
  208.  
  209. ;
  210. ; pascal ComponentResult AVPanelSetCustomData(ComponentInstance ci, long theCustomData)
  211. ;
  212.     IF ¨ GENERATINGCFM THEN
  213.         Macro
  214.         _AVPanelSetCustomData
  215.             move.l              #$00040000,-(sp)
  216.             moveq               #0,D0
  217.             dc.w                $A82A
  218.         EndM
  219.     ELSE
  220.         IMPORT_CFM_FUNCTION AVPanelSetCustomData
  221.     ENDIF
  222.  
  223. ;
  224. ; pascal ComponentResult AVPanelGetDitl(ComponentInstance ci, Handle *ditl)
  225. ;
  226.     IF ¨ GENERATINGCFM THEN
  227.         Macro
  228.         _AVPanelGetDitl
  229.             move.l              #$00040001,-(sp)
  230.             moveq               #0,D0
  231.             dc.w                $A82A
  232.         EndM
  233.     ELSE
  234.         IMPORT_CFM_FUNCTION AVPanelGetDitl
  235.     ENDIF
  236.  
  237. ;
  238. ; pascal ComponentResult AVPanelGetTitle(ComponentInstance ci, StringPtr title)
  239. ;
  240.     IF ¨ GENERATINGCFM THEN
  241.         Macro
  242.         _AVPanelGetTitle
  243.             move.l              #$00040002,-(sp)
  244.             moveq               #0,D0
  245.             dc.w                $A82A
  246.         EndM
  247.     ELSE
  248.         IMPORT_CFM_FUNCTION AVPanelGetTitle
  249.     ENDIF
  250.  
  251. ;
  252. ; pascal ComponentResult AVPanelInstall(ComponentInstance ci, DialogPtr dialog, short itemOffset)
  253. ;
  254.     IF ¨ GENERATINGCFM THEN
  255.         Macro
  256.         _AVPanelInstall
  257.             move.l              #$00060003,-(sp)
  258.             moveq               #0,D0
  259.             dc.w                $A82A
  260.         EndM
  261.     ELSE
  262.         IMPORT_CFM_FUNCTION AVPanelInstall
  263.     ENDIF
  264.  
  265. ;
  266. ; pascal ComponentResult AVPanelEvent(ComponentInstance ci, DialogPtr dialog, short itemOffset, EventRecord *event, short *itemHit, Boolean *handled)
  267. ;
  268.     IF ¨ GENERATINGCFM THEN
  269.         Macro
  270.         _AVPanelEvent
  271.             move.l              #$00120004,-(sp)
  272.             moveq               #0,D0
  273.             dc.w                $A82A
  274.         EndM
  275.     ELSE
  276.         IMPORT_CFM_FUNCTION AVPanelEvent
  277.     ENDIF
  278.  
  279. ;
  280. ; pascal ComponentResult AVPanelItem(ComponentInstance ci, DialogPtr dialog, short itemOffset, short itemNum)
  281. ;
  282.     IF ¨ GENERATINGCFM THEN
  283.         Macro
  284.         _AVPanelItem
  285.             move.l              #$00080005,-(sp)
  286.             moveq               #0,D0
  287.             dc.w                $A82A
  288.         EndM
  289.     ELSE
  290.         IMPORT_CFM_FUNCTION AVPanelItem
  291.     ENDIF
  292.  
  293. ;
  294. ; pascal ComponentResult AVPanelRemove(ComponentInstance ci, DialogPtr dialog, short itemOffset)
  295. ;
  296.     IF ¨ GENERATINGCFM THEN
  297.         Macro
  298.         _AVPanelRemove
  299.             move.l              #$00060006,-(sp)
  300.             moveq               #0,D0
  301.             dc.w                $A82A
  302.         EndM
  303.     ELSE
  304.         IMPORT_CFM_FUNCTION AVPanelRemove
  305.     ENDIF
  306.  
  307. ;
  308. ; pascal ComponentResult AVPanelValidateInput(ComponentInstance ci, Boolean *ok)
  309. ;
  310.     IF ¨ GENERATINGCFM THEN
  311.         Macro
  312.         _AVPanelValidateInput
  313.             move.l              #$00040007,-(sp)
  314.             moveq               #0,D0
  315.             dc.w                $A82A
  316.         EndM
  317.     ELSE
  318.         IMPORT_CFM_FUNCTION AVPanelValidateInput
  319.     ENDIF
  320.  
  321. ;
  322. ; pascal ComponentResult AVPanelGetSettingsIdentifiers(ComponentInstance ci, short *theID, OSType *theType)
  323. ;
  324.     IF ¨ GENERATINGCFM THEN
  325.         Macro
  326.         _AVPanelGetSettingsIdentifiers
  327.             move.l              #$00040008,-(sp)
  328.             moveq               #0,D0
  329.             dc.w                $A82A
  330.         EndM
  331.     ELSE
  332.         IMPORT_CFM_FUNCTION AVPanelGetSettingsIdentifiers
  333.     ENDIF
  334.  
  335. ;
  336. ; pascal ComponentResult AVPanelGetSettings(ComponentInstance ci, Handle *userDataHand, long flags, DialogPtr theDialog, long itemsOffset)
  337. ;
  338.     IF ¨ GENERATINGCFM THEN
  339.         Macro
  340.         _AVPanelGetSettings
  341.             move.l              #$00100009,-(sp)
  342.             moveq               #0,D0
  343.             dc.w                $A82A
  344.         EndM
  345.     ELSE
  346.         IMPORT_CFM_FUNCTION AVPanelGetSettings
  347.     ENDIF
  348.  
  349. ;
  350. ; pascal ComponentResult AVPanelSetSettings(ComponentInstance ci, Handle userDataHand, long flags, DialogPtr theDialog, long itemsOffset)
  351. ;
  352.     IF ¨ GENERATINGCFM THEN
  353.         Macro
  354.         _AVPanelSetSettings
  355.             move.l              #$0010000A,-(sp)
  356.             moveq               #0,D0
  357.             dc.w                $A82A
  358.         EndM
  359.     ELSE
  360.         IMPORT_CFM_FUNCTION AVPanelSetSettings
  361.     ENDIF
  362.  
  363. ;
  364. ; pascal ComponentResult AVPanelGetFidelity(ComponentInstance panelComponent, DisplayIDType displayID, DMFidelityType *panelFidelity)
  365. ;
  366.     IF ¨ GENERATINGCFM THEN
  367.         Macro
  368.         _AVPanelGetFidelity
  369.             move.l              #$00080100,-(sp)
  370.             moveq               #0,D0
  371.             dc.w                $A82A
  372.         EndM
  373.     ELSE
  374.         IMPORT_CFM_FUNCTION AVPanelGetFidelity
  375.     ENDIF
  376.  
  377. ;
  378. ; pascal ComponentResult AVPanelComponentTargetDevice(ComponentInstance panelComponent, DisplayIDType displayID, DialogPtr theDialog, long itemsOffset)
  379. ;
  380.     IF ¨ GENERATINGCFM THEN
  381.         Macro
  382.         _AVPanelComponentTargetDevice
  383.             move.l              #$000C0101,-(sp)
  384.             moveq               #0,D0
  385.             dc.w                $A82A
  386.         EndM
  387.     ELSE
  388.         IMPORT_CFM_FUNCTION AVPanelComponentTargetDevice
  389.     ENDIF
  390.  
  391. ;
  392. ; pascal ComponentResult AVPanelComponentGetPanelClass(ComponentInstance panelComponent, ResType *panelClass, ResType *subClass, Ptr reserved1, Ptr reserved2)
  393. ;
  394.     IF ¨ GENERATINGCFM THEN
  395.         Macro
  396.         _AVPanelComponentGetPanelClass
  397.             move.l              #$00100102,-(sp)
  398.             moveq               #0,D0
  399.             dc.w                $A82A
  400.         EndM
  401.     ELSE
  402.         IMPORT_CFM_FUNCTION AVPanelComponentGetPanelClass
  403.     ENDIF
  404.  
  405. ;  =============================                
  406. ;  Port Component Standard Component selectors    
  407. ;  =============================                
  408. ;
  409. ; pascal ComponentResult AVPortGetAVDeviceFidelity(ComponentInstance portComponent, AVIDType deviceAVID, DMFidelityType *portFidelity)
  410. ;
  411.     IF ¨ GENERATINGCFM THEN
  412.         Macro
  413.         _AVPortGetAVDeviceFidelity
  414.             move.l              #$00080100,-(sp)
  415.             moveq               #0,D0
  416.             dc.w                $A82A
  417.         EndM
  418.     ELSE
  419.         IMPORT_CFM_FUNCTION AVPortGetAVDeviceFidelity
  420.     ENDIF
  421.  
  422. ;
  423. ; pascal ComponentResult AVPortGetWiggle(ComponentInstance portComponent, Boolean *wiggleDevice)
  424. ;
  425.     IF ¨ GENERATINGCFM THEN
  426.         Macro
  427.         _AVPortGetWiggle
  428.             move.l              #$00040101,-(sp)
  429.             moveq               #0,D0
  430.             dc.w                $A82A
  431.         EndM
  432.     ELSE
  433.         IMPORT_CFM_FUNCTION AVPortGetWiggle
  434.     ENDIF
  435.  
  436. ;
  437. ; pascal ComponentResult AVPortSetWiggle(ComponentInstance portComponent, Boolean wiggleDevice)
  438. ;
  439.     IF ¨ GENERATINGCFM THEN
  440.         Macro
  441.         _AVPortSetWiggle
  442.             move.l              #$00020102,-(sp)
  443.             moveq               #0,D0
  444.             dc.w                $A82A
  445.         EndM
  446.     ELSE
  447.         IMPORT_CFM_FUNCTION AVPortSetWiggle
  448.     ENDIF
  449.  
  450. ;
  451. ; pascal ComponentResult AVPortGetName(ComponentInstance portComponent, Str255 portName)
  452. ;
  453.     IF ¨ GENERATINGCFM THEN
  454.         Macro
  455.         _AVPortGetName
  456.             move.l              #$00040103,-(sp)
  457.             moveq               #0,D0
  458.             dc.w                $A82A
  459.         EndM
  460.     ELSE
  461.         IMPORT_CFM_FUNCTION AVPortGetName
  462.     ENDIF
  463.  
  464. ;
  465. ; pascal ComponentResult AVPortGetGraphicInfo(ComponentInstance portComponent, PicHandle *thePict, Handle *theIconSuite, AVLocationPtr theLocation)
  466. ;
  467.     IF ¨ GENERATINGCFM THEN
  468.         Macro
  469.         _AVPortGetGraphicInfo
  470.             move.l              #$000C0104,-(sp)
  471.             moveq               #0,D0
  472.             dc.w                $A82A
  473.         EndM
  474.     ELSE
  475.         IMPORT_CFM_FUNCTION AVPortGetGraphicInfo
  476.     ENDIF
  477.  
  478. ;
  479. ; pascal ComponentResult AVPortSetActive(ComponentInstance portComponent, Boolean setActive)
  480. ;
  481.     IF ¨ GENERATINGCFM THEN
  482.         Macro
  483.         _AVPortSetActive
  484.             move.l              #$00020105,-(sp)
  485.             moveq               #0,D0
  486.             dc.w                $A82A
  487.         EndM
  488.     ELSE
  489.         IMPORT_CFM_FUNCTION AVPortSetActive
  490.     ENDIF
  491.  
  492. ;
  493. ; pascal ComponentResult AVPortGetActive(ComponentInstance portComponent, Boolean *isPortActive, Boolean *portCanBeActivated, void *reserved)
  494. ;
  495.     IF ¨ GENERATINGCFM THEN
  496.         Macro
  497.         _AVPortGetActive
  498.             move.l              #$00080106,-(sp)
  499.             moveq               #0,D0
  500.             dc.w                $A82A
  501.         EndM
  502.     ELSE
  503.         IMPORT_CFM_FUNCTION AVPortGetActive
  504.     ENDIF
  505.  
  506. ;
  507. ; pascal ComponentResult AVPortGetAVID(ComponentInstance portComponent, AVIDType *avDeviceID)
  508. ;
  509.     IF ¨ GENERATINGCFM THEN
  510.         Macro
  511.         _AVPortGetAVID
  512.             move.l              #$00040108,-(sp)
  513.             moveq               #0,D0
  514.             dc.w                $A82A
  515.         EndM
  516.     ELSE
  517.         IMPORT_CFM_FUNCTION AVPortGetAVID
  518.     ENDIF
  519.  
  520. ;
  521. ; pascal ComponentResult AVPortSetAVID(ComponentInstance portComponent, AVIDType avDeviceID)
  522. ;
  523.     IF ¨ GENERATINGCFM THEN
  524.         Macro
  525.         _AVPortSetAVID
  526.             move.l              #$00040109,-(sp)
  527.             moveq               #0,D0
  528.             dc.w                $A82A
  529.         EndM
  530.     ELSE
  531.         IMPORT_CFM_FUNCTION AVPortSetAVID
  532.     ENDIF
  533.  
  534. ;
  535. ; pascal ComponentResult AVPortSetDeviceAVID(ComponentInstance portComponent, AVIDType avDeviceID)
  536. ;
  537.     IF ¨ GENERATINGCFM THEN
  538.         Macro
  539.         _AVPortSetDeviceAVID
  540.             move.l              #$0004010A,-(sp)
  541.             moveq               #0,D0
  542.             dc.w                $A82A
  543.         EndM
  544.     ELSE
  545.         IMPORT_CFM_FUNCTION AVPortSetDeviceAVID
  546.     ENDIF
  547.  
  548. ;
  549. ; pascal ComponentResult AVPortGetDeviceAVID(ComponentInstance portComponent, AVIDType *avDeviceID)
  550. ;
  551.     IF ¨ GENERATINGCFM THEN
  552.         Macro
  553.         _AVPortGetDeviceAVID
  554.             move.l              #$0004010B,-(sp)
  555.             moveq               #0,D0
  556.             dc.w                $A82A
  557.         EndM
  558.     ELSE
  559.         IMPORT_CFM_FUNCTION AVPortGetDeviceAVID
  560.     ENDIF
  561.  
  562. ;
  563. ; pascal ComponentResult AVPortGetPowerState(ComponentInstance deviceComponent, AVPowerStatePtr getPowerState)
  564. ;
  565.     IF ¨ GENERATINGCFM THEN
  566.         Macro
  567.         _AVPortGetPowerState
  568.             move.l              #$0004010C,-(sp)
  569.             moveq               #0,D0
  570.             dc.w                $A82A
  571.         EndM
  572.     ELSE
  573.         IMPORT_CFM_FUNCTION AVPortGetPowerState
  574.     ENDIF
  575.  
  576. ;
  577. ; pascal ComponentResult AVPortSetPowerState(ComponentInstance deviceComponent, AVPowerStatePtr setPowerState)
  578. ;
  579.     IF ¨ GENERATINGCFM THEN
  580.         Macro
  581.         _AVPortSetPowerState
  582.             move.l              #$0004010D,-(sp)
  583.             moveq               #0,D0
  584.             dc.w                $A82A
  585.         EndM
  586.     ELSE
  587.         IMPORT_CFM_FUNCTION AVPortSetPowerState
  588.     ENDIF
  589.  
  590. ;  =============================                
  591. ;  Video Out Port Component Selectors            
  592. ;  =============================                
  593. ;
  594. ; pascal ComponentResult AVPortCheckTimingMode(ComponentInstance displayComponent, DisplayIDType theDisplayID, VDDisplayConnectInfoPtr connectInfo, VDTimingInfoPtr modeTiming, unsigned long reserved)
  595. ;
  596.     IF ¨ GENERATINGCFM THEN
  597.         Macro
  598.         _AVPortCheckTimingMode
  599.             move.l              #$00100000,-(sp)
  600.             moveq               #0,D0
  601.             dc.w                $A82A
  602.         EndM
  603.     ELSE
  604.         IMPORT_CFM_FUNCTION AVPortCheckTimingMode
  605.     ENDIF
  606.  
  607. ;  =============================                
  608. ;  AV Device Component Selectors                
  609. ;  =============================                
  610. ;
  611. ; pascal ComponentResult AVDeviceGetName(ComponentInstance portComponent, Str255 portName)
  612. ;
  613.     IF ¨ GENERATINGCFM THEN
  614.         Macro
  615.         _AVDeviceGetName
  616.             move.l              #$00040100,-(sp)
  617.             moveq               #0,D0
  618.             dc.w                $A82A
  619.         EndM
  620.     ELSE
  621.         IMPORT_CFM_FUNCTION AVDeviceGetName
  622.     ENDIF
  623.  
  624. ;
  625. ; pascal ComponentResult AVDeviceGetGraphicInfo(ComponentInstance portComponent, PicHandle *thePict, Handle *theIconSuite, AVLocationPtr theLocation)
  626. ;
  627.     IF ¨ GENERATINGCFM THEN
  628.         Macro
  629.         _AVDeviceGetGraphicInfo
  630.             move.l              #$000C0101,-(sp)
  631.             moveq               #0,D0
  632.             dc.w                $A82A
  633.         EndM
  634.     ELSE
  635.         IMPORT_CFM_FUNCTION AVDeviceGetGraphicInfo
  636.     ENDIF
  637.  
  638. ;
  639. ; pascal ComponentResult AVDeviceGetPowerState(ComponentInstance deviceComponent, AVPowerStatePtr getPowerState)
  640. ;
  641.     IF ¨ GENERATINGCFM THEN
  642.         Macro
  643.         _AVDeviceGetPowerState
  644.             move.l              #$00040102,-(sp)
  645.             moveq               #0,D0
  646.             dc.w                $A82A
  647.         EndM
  648.     ELSE
  649.         IMPORT_CFM_FUNCTION AVDeviceGetPowerState
  650.     ENDIF
  651.  
  652. ;
  653. ; pascal ComponentResult AVDeviceSetPowerState(ComponentInstance deviceComponent, AVPowerStatePtr setPowerState)
  654. ;
  655.     IF ¨ GENERATINGCFM THEN
  656.         Macro
  657.         _AVDeviceSetPowerState
  658.             move.l              #$00040103,-(sp)
  659.             moveq               #0,D0
  660.             dc.w                $A82A
  661.         EndM
  662.     ELSE
  663.         IMPORT_CFM_FUNCTION AVDeviceSetPowerState
  664.     ENDIF
  665.  
  666. ;
  667. ; pascal ComponentResult AVDeviceSetAVID(ComponentInstance deviceComponent, AVIDType avDeviceID)
  668. ;
  669.     IF ¨ GENERATINGCFM THEN
  670.         Macro
  671.         _AVDeviceSetAVID
  672.             move.l              #$00040105,-(sp)
  673.             moveq               #0,D0
  674.             dc.w                $A82A
  675.         EndM
  676.     ELSE
  677.         IMPORT_CFM_FUNCTION AVDeviceSetAVID
  678.     ENDIF
  679.  
  680.     ENDIF
  681.     ENDIF ; __AVCOMPONENTS__ 
  682.  
  683.